package kehou;

import java.util.Scanner;

public class Task4 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String macbrand = "macbookair";
        double macsize = 13.3;
        double macprice = 6988.88;
        String macconfig = "i5处理器4GB内存128G固态硬盘";
        int macount= 5;
        String thinkpadbrand="thinkpadt450";
        double thinkpadsize=14.0;
        double thinkpadprice=5999.99;
        String thinkpadconfig="i5处理器4GB内存500G硬盘";
        int thinkpadcount=10;
        String asusbrand="asus-fl5800";
        double asussize=15.6;
        double asusprice=4999.50;
        String asusconfig="i7处理器4GB内存128G固态硬盘";
        int asuscount=18;
        System.out.println("-----------------------------商场库存清单" + "------------------------------");
        System.out.println("品牌型号   尺寸价格   配置    库存数");
        System.out.println(macbrand+"  "+macsize+" "+macprice+"   "+macconfig+" "+macount);
        System.out.println(thinkpadbrand+" "+thinkpadsize+"  "+thinkpadprice+"  "+thinkpadconfig+" " +thinkpadcount);
        System.out.println(asusbrand+" "+asussize+"  "+asusprice+"  "+asusconfig+"  "+asuscount);
        int totalcount = macount + thinkpadcount + asuscount;
        double totalmoney = (macount * macprice) +  (thinkpadcount * thinkpadprice) + (asuscount * asusprice);
        System.out.println("-------------------" + "---------------------------------------------------");
        System.out.println("总库存数："+totalcount);
        System.out.println("库存商品总金额："+totalmoney);
    }
}
